<template>
  <div>
    <span>自定义测试页面</span>
  </div>
</template>

<script>
import {ajax} from '@/store/yg/common/utils'

export default {
  props: [
  　　'data'
　],
  data() {
    return {
      id: '',
      row: ''
    }
  },
  methods: {
    onSubmit() {
      if ('' === this.id) {
        return;
      }
      var data = {};
      data['id'] = this.id;
      ajax('request', data).then(res => {
        this.row = res;
      }, error => {
        console.log(error);
      });
    }
  }
}
</script>
